package cate.game.common.msg;

import cate.game.GameBody;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBCommon;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "心跳 の 返回")
public class HeartbeatResp implements MsgOutput {

    @NoteField(value = "当前服务器时间")
    public long time;

    public HeartbeatResp() {
    }

    public HeartbeatResp(GameBody game) {
        this.time = game.time.now();
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBCommon.HEART_BEAT_RESP;
    }
}
